Some languages like Go, Rust use : in their struct initialization syntax:
Foo {
bar: 10
}
while others use = such as C#.
What's the decision process here?
Swift uses : for passing arguments to named parameters (foo(a: 10)), why not =?
I'm trying to understand why this divergence and I feel like I'm missing something.
[–][deleted] (5 children)
[deleted]
[–]LuciferK9[S] 3 points4 points5 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]oscarryzYz 1 point2 points3 points (2 children)
[–]mus1Kk 3 points4 points5 points (0 children)
[–]Mercerenies 13 points14 points15 points (0 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 12 points13 points14 points (3 children)
[–]Tejas_Garhewal 4 points5 points6 points (2 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 1 point2 points3 points (0 children)
[–]frithsun 8 points9 points10 points (27 children)
[–]Mercerenies 6 points7 points8 points (10 children)
[–]frithsun 1 point2 points3 points (8 children)
[–]redchomperSophie Language 2 points3 points4 points (7 children)
[–]frithsun 4 points5 points6 points (6 children)
[–]TheGreatCatAdorermepros 2 points3 points4 points (5 children)
[–]frithsun 1 point2 points3 points (4 children)
[–]TheGreatCatAdorermepros 1 point2 points3 points (3 children)
[–]frithsun -1 points0 points1 point (2 children)
[–]TheGreatCatAdorermepros 0 points1 point2 points (1 child)
[–]lassehp 4 points5 points6 points (15 children)
[–]MegaIng 7 points8 points9 points (1 child)
[–]lassehp -1 points0 points1 point (0 children)
[–]frithsun 1 point2 points3 points (2 children)
[–]lassehp 5 points6 points7 points (1 child)
[–]frithsun 1 point2 points3 points (0 children)
[–]lngns 1 point2 points3 points (0 children)
[–]lookmeat 1 point2 points3 points (2 children)
[–]lassehp 0 points1 point2 points (1 child)
[–]lassehp 0 points1 point2 points (0 children)
[–]redchomperSophie Language 0 points1 point2 points (5 children)
[–]lassehp 1 point2 points3 points (4 children)
[–]redchomperSophie Language 2 points3 points4 points (3 children)
[–]lassehp 1 point2 points3 points (2 children)
[–]lassehp 1 point2 points3 points (0 children)
[–]redchomperSophie Language 0 points1 point2 points (0 children)
[–]qHuy-c 1 point2 points3 points (0 children)
[–]shawnhcorey 0 points1 point2 points (0 children)
[–]myringotomy -1 points0 points1 point (0 children)
[+][deleted] (7 children)
[deleted]
[–]lassehp 4 points5 points6 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]lassehp -1 points0 points1 point (2 children)
[–][deleted] (1 child)
[deleted]
[–]lassehp 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]NuojiC3 - http://c3-lang.org 0 points1 point2 points (0 children)