darcy,
@darcy@sh.itjust.works avatar

typescript is still weakly typed.

it is just a hacky static analysis that compiles to weakly typed js

vox,
@vox@sopuli.xyz avatar

tbh c/c++ type system is super fucked up
What the fuck is unsigned long long int just call it u64

Johanno,

Well it isn’t always 64 bytes. Some architectures differ.

darcy,
@darcy@sh.itjust.works avatar

usize then

akariii,

you can just use unsigned long long (drop the int) or, if it bothers you that much, uint64t but keep in mind that yhe size of unsigned long long may vary depending on the architecture

fiah,
@fiah@discuss.tchncs.de avatar

const a: any = “You have no power here!”

socsa,

laughs in reinterpret_cast

Is it even a programming language if you can’t casually introduce type overflows?

lowleveldata,

tbh unsigned int scares me too. I just use int anyway to avoid strange things happening.

zeropublix,

The use of it quite limited in the every-day coders life. People acting like they be using 500TB databases these days.

rikudou,
@rikudou@lemmings.world avatar

Solution:

export type unsigned_int = number

shootwhatsmyname,
@shootwhatsmyname@lemm.ee avatar

export type App = unknown

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines