News for hackers. Stuff that matters.
Re:Show HN: Buzz, strongly typed scripting language written ... by lolinder on Monday November 21, 2022 @10:28AM (#33693618)
Typing is technically a distinct concept from binary representation, it just happens to be a very useful concept for interpreting bits. If the set of valid operations is known at compile time with no exceptions, I'd call that strong typing regardless of whether the internal representation changes during execution.

The problem I do see with combining int and float is that it means that you always have to be careful with == on any pair of numbers, where a language that does distinguish between the two gives you a cue about when equality will work and when it won't.

But that's a flaw in the number type, not a weakness in the type system.

Re:Show HN: Buzz, strongly typed scripting language written ... by 1MachineElf on Monday November 21, 2022 @10:51AM (#33693906)
I will be interesting to see how this combined number data type plays with the Zig/CPP/C interop feature: https://github.com/buzz-language/buzz#call-czig-code
Re:Show HN: Buzz, strongly typed scripting language written ... by teux on Tuesday November 22, 2022 @05:19AM (#33704154)
Thanks, yeah that makes a lot of sense. I do tend to conflate the two concepts.