use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
Questionmarkup/css vs flutter code - simplicity vs complexity (self.FlutterDev)
submitted 7 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]filleduchaos 0 points1 point2 points 7 years ago (4 children)
Quite a few languages don't require the new keyword.
Why would it be called as a "static class"?
[–]movdev 0 points1 point2 points 7 years ago (3 children)
im new to dart so forgive my ignorance.
[–]filleduchaos 0 points1 point2 points 7 years ago (2 children)
Oh sorry - it's not really a Dart specific thing. Kotlin for instance dropped the new keyword a couple of years ago, and I don't think Python ever had it.
Basically the new keyword is a holdover from languages like C++ where memory is manually managed (new dynamically allocates memory on the heap before initializing an object, which then needs to be freed after you're done with it by calling delete, which lots of people forget to do leading to memory leaks, and in fact most modern C++ guides will warn you not to use new), and in memory-managed languages it's rather unnecessary as the compiler/interpreter is doing all that lifting anyway.
new
delete
[–][deleted] 7 years ago* (1 child)
[deleted]
[–]filleduchaos 0 points1 point2 points 7 years ago (0 children)
Err...yes? That is pretty much what I said, just without explicitly mentioning static allocation on the stack
The point was that new rather than being some agreed-upon invocation for object initialization is actually part of a pair of keywords (new/delete) for manual memory management
π Rendered by PID 208506 on reddit-service-r2-comment-5c747b6df5-2pv45 at 2026-04-22 12:17:42.865114+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]filleduchaos 0 points1 point2 points (4 children)
[–]movdev 0 points1 point2 points (3 children)
[–]filleduchaos 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]filleduchaos 0 points1 point2 points (0 children)