SourceGo icon indicating copy to clipboard operation
SourceGo copied to clipboard

New Typing Direction

Open kevyonan opened this issue 3 years ago • 1 comments

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

  • int32 = int
  • float64 = float
  • bool = bool
  • uint8/byte = char
  • uintptr = Handle
  • Entity = int (type alias)
  • Vec3, QAngle = float[3]
  • __function__ = Function (SrcGo builtin)
  • any = any

kevyonan avatar Jun 10 '22 03:06 kevyonan

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

kevyonan avatar Jun 25 '22 22:06 kevyonan