mitt_romney_12
Joined 3 years ago
Joined 3 years ago
fn do_stuff(offset: int) -> (string, int) { x = read_guess(offset) y = read_name("what's your name: ", offset + len(x)) z = read_guess(offset+len(x)+len(y)) new_offset = offset+len(x)+len(y)+len(z) return ("name is: {y}, guess is: {x}", new_offset) }
x = read_guess(); y = io.read_int("what's your name: "); z = read_guess();
How would your system ensure x and z are the same?
The worst case is actually worse than when types are mandatory, since you can get an error in the wrong place. For example, if a function has the wrong type inferred then you get an error when you use it even though the actual location of the error is at the declaration site. Type inference is good but there should be some places (ex. function declarations) where annotations are required.
[1] https://koka-lang.github.io/koka/doc/book.html#sec-return
const count = (amount: number) => {
if (amount > 0) {
return [...count(amount - 1), amount]
} else {
return []
};
} const todo = <DoMoreStuff args={...}><DoEvenMoreStuff args={...}/></DoMoreStuff>;
<DoStuff args={...}>{todo}</DoStuff>I'm a little more cynical, I think the cycle is: a new financial invention comes out, greed causes people to people to pump money into it, eventually the bubble pops or regulators step in. We've seen it time and time again: the dot com bubble, the subprime mortgage bubble, SPACs, and now/soon (IMO) with PE. My question is how many times this has to happen before we stop viewing it as an isolated with specific product and start to see it as a system issue with our financial system.
So many people. Look no further than the activists who are continuing to protest against Cop City in Atlanta despite the fact that the cops have already murdered one person [1] and arrested many more on trumped up charges [2].
[1] https://theintercept.com/2023/04/20/atlanta-cop-city-protest... [2] https://theintercept.com/2023/06/21/cop-city-georgia-attorne...
[1] https://en.wikipedia.org/wiki/Schenck_v._United_States (Note: this case has been overturned, but it took 50 years)
[1] https://en.wikipedia.org/wiki/Killing_of_Andre_Hill#Incident
[1] https://www.npr.org/2021/07/15/1016431004/a-woman-is-facing-...