why does everyone want to own the libs
as an open source developer i own multiple libs
i would happily pay people to take them from me
you do not want to own libs. its so much work
Maybe one day these Twitter links will be replaced by Mastodon cross-posts
I don’t really get the point of this. Of course the function will accept the value as a string if you specifically tell it to treat it as such (which wouldn’t even be possible without casting it to unknown first)?
I guess the point is, it’s not strongly typed during runtime. In other strongly typed languages, that cast would fail, since the underlying memory layout of some random class does not fit to that of a string.
But yeah, as soon as you break out as, you’re telling the type system to fuck off. So, while it does look freaky to me, too, it doesn’t dispell that TypeScript is strongly typed…
Yeah, I do agree that it’s a bit weird with TS. It’s fully understandable though, since it just transpiles to JS, which doesn’t have any type information during runtime. I think as far as webdev goes though, TS makes it at least somewhat bearable.
That’s also why i love the rust ecosystem. If you have rust installed and have your local dependencies (or only use the standard library), the docs can be generated locally (cargo doc). I certainly remember local manuals helping me out more than once over the years :)
I mean, are we sure the font used in that screenshot isn’t monospace?
If you compare the two lines after the first comment, the columns seem to align quite well (though I cannot read some of that)…
The only word I’m truly sure about, is “Chain”, and I can mostly read “name”.
The “static” and ”char", I would not be able to make out, without knowing that they’re keywords in C.
And the “create” is pretty much unreadable to me, but it would make sense to be “create_chain”, since it returns a Chain object.
Not necessarily a bad thing. If your method of invocation gives context about its possible use cases. You can make the program more safe because you know it’s being used appropriately. If you’re just passing a pointer around anything could happen to it. So it’s hard to help the programmer not make mistakes
programmerhumor
Hot
This magazine is from a federated server and may be incomplete. Browse more on the original instance.