Earlier quoted context omitted.
Makes sense, and I guess it’s semantics, but if the language/interpreter is handling which numeric types to use for me, should it really be sold as “strongly typed” in the main tagline for the language? Internally, float and int are completely different types, 2’s compliment vs ieee754. Conglomerating them to a “number” feels like weak typing. (Disclaimer: I’m a grumpy C++ engineer.) Edit: it does look like a neat/us…
Those are representations, not types. I think they are using the "what can I do with this" definition of type, which is just its public API, and nominality (walks like a duck, quacks like a duck, doesn't mean it's a duck)
Show HN: Buzz, strongly typed scripting language written in Zig
31–40 of 70 posts
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#32just for your information: the logo resembles islamic flags
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#33Earlier quoted context omitted.
I think it's more to do with it being a scripting language. Scripting languages are designed to be quick and easy to write, so instead of having to deal with int/float etc, the language can do it for you.
Makes sense, and I guess it’s semantics, but if the language/interpreter is handling which numeric types to use for me, should it really be sold as “strongly typed” in the main tagline for the language? Internally, float and int are completely different types, 2’s compliment vs ieee754. Conglomerating them to a “number” feels like weak typing. (Disclaimer: I’m a grumpy C++ engineer.) Edit: it does look like a neat/us…
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#34Re: Show HN: Buzz, strongly typed scripting language written in Zig
#35Earlier quoted context omitted.
Makes sense, and I guess it’s semantics, but if the language/interpreter is handling which numeric types to use for me, should it really be sold as “strongly typed” in the main tagline for the language? Internally, float and int are completely different types, 2’s compliment vs ieee754. Conglomerating them to a “number” feels like weak typing. (Disclaimer: I’m a grumpy C++ engineer.) Edit: it does look like a neat/us…
It may be strong typing, and there are just no ints. This is how JavaScript works: all numbers are f64.
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#36just for your information: the logo resembles islamic flags
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#37Re: Show HN: Buzz, strongly typed scripting language written in Zig
#38Earlier quoted context omitted.
It may be strong typing, and there are just no ints. This is how JavaScript works: all numbers are f64.
Then what is: 1 << 33
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#39To be clear, this is an honest question, and possibly something the author should consider answering, intended as feedback, not a criticism. I'm open to it. I'm also curious and I'm sure I'm not the only one. (Either way I definitely would suggest mentioning if it's garbage collected or not. It's an important point.)
Re: Show HN: Buzz, strongly typed scripting language written in Zig
#40Curious what the author is thinking of when calling this a "scripting language"? I personally don't have much trouble imagining a strongly-typed scripting language, but that definitely goes against the flow of the past couple of decades. Is it that it is garbage collected? That's about all I can see that would make this immediately obviously a "scripting language". It doesn't seem like it ought to be intrinsically as…
It’s true that we’re not used to scripting languages having a type system. But its a trend that is catching on: python has types, php too and typescript is at its peak in popularity to name a few.