Results 109 comments of Piotr Fusik

I'd like to have generics in Ć, of course! However, your example translates easily to C++, but not C# or Java. It uses duck typing. C# or Java won't allow...

Back to the topic. I'd like to see real code examples where generics are useful. From my experience, it's mostly collections. And yes, some collections are not implemented yet, most...

I've added `Stack` and `HashSet`.

[Go introduces generics](https://go.dev/blog/why-generics) after 12 years.

Added `OrderedDictionary` and `Queue`.

Last time I checked Mono it reported a `NotImplementedException`. Why bother with Mono if you can have official .NET on Linux? The syntax you are asking about is a [switch...

`long` in Ć is translated to `int64_t` in C and C++. `int` is 32-bit on all modern hardware. Range types are not about range checking. They are for efficient memory...

Yes, I'm aware of 16-bit MCUs. Emitting `int32_t` everywhere would destroy the performance and moreover pump the binary size which is at premium in such MCUs. It will also make...

Not sure what you ask for? `stdint.h` *is* used by `cito`. `byte` is `uint8_t`. `short` is `int16_t`. The only non-stdint integer types are `int` and ranges. Yes, I'll consider translating...

`long` is how C#, Java, OpenCL and Ć spell 64-integers. C:\0\ci>type 60.ci public class Test { public long Bar() { long foo = 42; return foo; } } C:\0\ci>cito -o...