assyrianic / SourceGo

SourceGo is a transpiler that transforms a subset of Golang-like code to equivalent SourcePawn.
https://forums.alliedmods.net/showthread.php?t=328269
MIT License
25 stars 3 forks source link

New Typing Direction #16

Open assyrianic opened 2 years ago

assyrianic commented 2 years ago

So I'm debating whether to keep Golang's typing instead of adapting it to SourcePawn's (e.g. using Golang int32 to be equivalent to SourcePawn int, float32 being equivalent to SP float. bool the same. uint8 for char.

Here's the current chart I'm scheming up: Format: Golang-version = SP-version

assyrianic commented 2 years ago

Debating if slices like []int or []float should be backed from ArrayList and remove them from representing arrays of unknown sizes? 🤔