Re:Ladybird: Closing this as we are no longer pursuing Swift...
by j_w on Thursday February 19, 2026 @11:29AM
(#47075538)
How is that snippet any better than:
x := 42
Or
let x = 42
Or
x = 42
It seems like a regression from modern languages.
Re:Ladybird: Closing this as we are no longer pursuing Swift...
by bmn__ on Monday February 23, 2026 @10:31AM
(#47123595)
"my" is 33% shorter than "let"
Example 1 and 3 are not declarations, so apples ↔ oranges
Re:Ladybird: Closing this as we are no longer pursuing Swift...
by j_w on Monday February 23, 2026 @11:18AM
(#47124381)
my $x = 42;
let x = 42
Well, when you add in the '$' and ';' tokens the "let" example is still shorter. Also as another person replied to you, those other two examples are declarations in other languages. So 0 for 3 there.
Re:Ladybird: Closing this as we are no longer pursuing Swift...
by yossi_peti on Monday February 23, 2026 @11:16AM
(#47124351)
Example 1 is a declaration in Go.
Example 3 is a declaration in Python.
Re:Ladybird: Closing this as we are no longer pursuing Swift...
by grey-area on Friday February 20, 2026 @03:01AM
(#47085086)
Have you looked at all the previous attempts?
Your example is not compelling I’m afraid but you should try building a language to see. Also read literate programming if you haven’t already.
Here's a very simple, lexical declaration made more human friendly by use of the preposition `my` (or `our` if it is packaged scoped)...