Hacker GitHub

← All repos

dart-lang/language

View on GitHub ↗ ★ 2,941 TeX

Design of the Dart language

64 mentions on Hacker News by 32 people: 7 stories, 57 comments · first 2018-11-15 · latest 2025-07-19

Mentions per year 64 mentions · busiest year 2024 (14)
20082026
  1. Dart is also absolutely fantastic in this regard. https://github.com/dart-lang/language https://github.com/orgs/dart-lang/projects/90/views/1
  2. …match statement different??), this very annoying issue that I see remains unsolved after 5 years: https://github.com/dart-lang/language/issues/1188
    comment by IshKebab · 2025-07-02 · in Show HN: I made a 2D game engine in Dart
  3. …a lot of additional help from a teammate to handle generics), that became the algorithm we shipped: https://github.com/dart-lang/language/blob/main/accepted/3.0... It wouldn't have happened if I hadn't coincidentally been working on a toy…
    comment by munificent · 2025-06-24 · in Writing toy software is a joy
  4. …syntax[1]), except Rust doesn't have that because of its headlong pursuit of 'conciseness'. - [1] https://github.com/dart-lang/language/issues/2181
  5. …JS and Dart. Considering your involvement with Dart, I find contradictory information [1]. [1] - https://github.com/dart-lang/language/issues/1461
  6. …on an immutable snapshot of data so that exhaustiveness can't be violated by side effects. Spec: https://github.com/dart-lang/language/blob/main/accepted/3.0...
    comment by munificent · 2024-10-21 · in The Ultimate Conditional Syntax
  7. …to implement this which should start putting it into an different category of language entirely. https://github.com/dart-lang/language/blob/main/working/333%...
    comment by mdhb · 2024-10-04 · in Go Concurrency vs. RxJS
  8. …code generation. 5. Potentially looking at bringing Shared Memory Multithreading to the language https://github.com/dart-lang/language/blob/2662d252b7fa93175... 6. Also some early work on a bytecode compiler it seems but I’ve not seen any…
    comment by mdhb · 2024-09-28 · in REPL for Dart
  9. …cases like these: https://github.com/pocketbase/dart-sdk/blob/master/lib/src/a... Related issue: https://github.com/dart-lang/language/issues/83
    comment by Alifatisk · 2024-08-07 · in Official proposal for Type Unions in C#
  10. For now but this is in the pipeline too. https://github.com/dart-lang/language/blob/main/working/333%...
    comment by mdhb · 2024-06-11 · in Swift Static Linux SDK
  11. …means you can attach different virtual behavior to every member of the sealed class family. [1]: https://github.com/dart-lang/language/issues/3021
    comment by mraleph · 2024-03-06 · in Embedded Swift on the Raspberry Pi Pico
  12. It also may be getting shared multithreading and related features: https://github.com/dart-lang/language/blob/15ab39175ee00fe88...
    comment by markdog12 · 2024-01-31 · in Dart/Flutter now has macros/metaprogramming
  13. Examples right in language repo: https://github.com/dart-lang/language/tree/main/working/macr...
    comment by markdog12 · 2024-01-31 · in Dart/Flutter now has macros/metaprogramming
  14. This is the actual spec: https://github.com/dart-lang/language/blob/main/working/macr... Not really sure what the linked repo is about.
  15. …at a macro level and have really strong levels of transparency around how the language is developed https://github.com/dart-lang/language Honestly I think it’s critically under-rated and under-used. Most of its common criticisms I see…
    comment by mdhb · 2023-09-17 · in Java 21 makes me like Java again
  16. …record fields there are. Figuring that all out was quite the challenge! The full design is here: https://github.com/dart-lang/language/blob/main/accepted/3.0...
  17. This doc was updated 3 weeks ago? https://github.com/dart-lang/language/blob/main/working/macr... > This could've eliminated so much sickening codegen. Also this is funny because what do you think static metaprogramming is if not codegen?…
  18. …you just want to define your data and no behavior / helpers - then it is exceedingly verbose. [1]: https://github.com/dart-lang/language/issues/3021
  19. …Macros to the language. It was really interesting to compare and contrast some of the approaches https://github.com/dart-lang/language/blob/main/working/macr...
    comment by mhoad · 2023-06-07 · in What’s New in Swift 5.9?
  20. …a ton of work from Johnni Winther to figure out all of the hard complex cases around generics): https://github.com/dart-lang/language/blob/main/accepted/fut... The performance (in the prototype!) was dramatically better. You can always…
  21. …sad more focus is given to things like WebAssembly when the core of Dart/Flutter is lacking. [1] https://github.com/dart-lang/language/blob/main/accepted/fut... [2] https://github.com/dart-lang/language/blob/main/working/exte...
  22. …human-centered process so often the right answer is just what feels right to the most people. [1]: https://github.com/dart-lang/language/blob/master/accepted/f...
    comment by munificent · 2023-03-21 · in Java 20 / JDK 20: General Availability
  23. …in Dart. But if that doesn't work, the proposal for augmentation libraries would probably help: https://github.com/dart-lang/language/blob/master/working/au... I'm glad you're enjoying Dart!
    comment by munificent · 2023-02-04 · in Flutter desktop isn’t there yet
  24. …that's not already covered by how it does web support anyway, ie drawing inside a canvas? [0] https://github.com/dart-lang/language/issues/2697
  25. Pattern Matching looks good too ! https://github.com/dart-lang/language/blob/master/accepted/f...
  26. …instantaneous hot code reloading being quite amazing -- a bizarre mix of promise and despair. [1] https://github.com/dart-lang/language/blob/master/resources/...
  27. …if we are talking about these specific features this is a good place to start Here is the intro: https://github.com/dart-lang/language/blob/master/accepted/f... Here is the spec of what they are currently implementing:…
  28. …there is a category on the issue tracker for design discussions related to patterns and records: https://github.com/dart-lang/language/issues?q=is%3Aissue+is...
  29. …contraire! We're actively investigating them here on the Dart team. We're finalizing the spec here: https://github.com/dart-lang/language/blob/98335746fb7f2dedf...
  30. And it's getting patterns too: https://github.com/dart-lang/language/tree/master/working/05...
    comment by markdog12 · 2022-05-14 · in Java record pattern matching in JDK 19
  31. …say coming from a Ruby background previously. Here is the section on pattern matching specifically https://github.com/dart-lang/language/tree/master/working/05... and this is the design spec itself https://github.com/dart-lang/language/blob…
    comment by mhoad · 2022-05-12 · in Flutter 3
  32. …We are also working on support for pattern matching and algebraic datatype-style programming: https://github.com/dart-lang/language/blob/master/working/05... I say "style" here because object-oriented languages like Dart can already mostly…
    comment by munificent · 2022-05-11 · in Flutter 3
  33. …actually use it much, hating on it). [1] https://medium.com/dartlang/dart-2-17-b216bfc80c5d [2] https://github.com/dart-lang/language/issues/1482
    comment by brabel · 2022-05-11 · in Flutter 3
  34. …on optional semi-colons [1], and the author's own comment on the subject in an HN thread [2] [1] https://github.com/dart-lang/language/issues/69 [2] https://news.ycombinator.com/item?id=22706645
    comment by virtualwhys · 2022-03-05 · in The hardest program I've ever written (2015)
  35. …Google wanted Dart to replace JavaScript, and still you can't express an object's interface in it. https://github.com/dart-lang/language/issues/783
  36. I got bitten by this unsoundness which looks like to be present in Dart 2 as well https://github.com/dart-lang/language/issues/753
    comment by kuyp · 2021-11-13 · in Why asynchronous Rust doesn't work
  37. …a bit more functional in practice). Considering what people are asking to add to the language ( https://github.com/dart-lang/language/blob/master/working/05... ), I wish people would start with a minimal functional language (Caml/SML…
    comment by Zababa · 2021-09-19 · in Write in JavaScript, Render in Flutter
  38. …on, you can just swap out the old language feature (as a package) and swap in the new one. [0] https://github.com/dart-lang/language/issues/1482
    comment by satvikpendem · 2021-09-19 · in Write in JavaScript, Render in Flutter
  39. …next batch of features, which with luck includes pattern matching. Here's an in-progress proposal: https://github.com/dart-lang/language/blob/master/working/05...
    comment by munificent · 2021-03-04 · in Flutter 2
  40. Dart is looking at adding pattern matching and "record" types: https://github.com/dart-lang/language/tree/master/working/05...
    comment by markdog12 · 2020-12-08 · in Why nullable types?
  41. …are curious that Dart is looking at adding pattern matching, since it's mentioned in the article. https://github.com/dart-lang/language/tree/master/working/05... @munificent, not sure if that's the link you'd want.
    comment by markdog12 · 2020-12-07 · in Why Nullable Types?
  42. …and hopefully with the release of null safety, the team will have the time to implement ADTs! [0] https://github.com/dart-lang/language/issues/349
    comment by eat_veggies · 2020-07-26 · in Understanding null safety in Dart
  43. newtype dart proposal: https://github.com/dart-lang/language/blob/master/working/st...
    comment by markdog12 · 2020-07-25 · in Understanding null safety in Dart
  44. …classes, first class functions, everything's an object, duck typing with noSuchMethod, etc. [1] https://github.com/dart-lang/language/issues/110
    comment by mythz · 2020-05-13 · in React Native for Windows and Mac
  45. As for nulls, non-nullability is currently in the works: https://github.com/dart-lang/language/blob/master/accepted/f...
  46. > they still made every single type nullable NNBD is almost here: https://github.com/dart-lang/language/blob/master/accepted/f...
  47. …available that would give an idea as to when x, y, z language features may be implemented? [1] https://github.com/dart-lang/language/issues/546
    comment by virtualwhys · 2019-11-06 · in TypeScript 3.7
  48. …formatted as a paragraph in the final document. This allows for better diffs. Here is an example: https://github.com/dart-lang/language/blob/master/specificat...
  49. …believed [0] that not having non-nullable types was a mistake in Dart 1.0. We are fixing it now: https://github.com/dart-lang/language/blob/master/working/01... There's a lot of work to do, but I'm really excited with the design. Unlike…
    comment by munificent · 2019-04-25 · in Flutter desktop shells
  50. …they are working on adding many other language features, including NNBD (Non-null by default). https://github.com/dart-lang/language/issues
    comment by markdog12 · 2019-04-25 · in Flutter desktop shells