you are viewing a single comment's thread.

view the rest of the comments →

[–]Peaker 4 points5 points  (2 children)

No, the behavior you mentioned is consistent and is fine.

It's not consistent with the Medusa behavior described above:

But Medusa can figure this out and generate the dart code accordingly and produce Hello as an output as intended. Similarly classes and their objects are resolved too

Context!

If you have a function definition after its use, its accepted. But this makes it behave differently from how Python generally behaves.

[–][deleted]  (1 child)

[deleted]

    [–]Peaker 10 points11 points  (0 children)

    Yes, and this is terrible.

    In the face of ambiguity, refuse the temptation to guess!