Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
imbnwa
· 3y ago · 0 comments
Did't know Java had a `Promise` type
Comments
[–]
nobleach
3y ago
That's not Java. I believe they're demoing in Typescript a pattern they like from Java/Spring/Quarkus/Micronaut.
[–]
imbnwa
OP
3y ago
Ah yikes, read that too quickly
[–]
divs1210
3y ago
I didn't know Java had a `function` keyword.
That is TS, not Java. Not sure why the gp is calling it Java.
[–]
Jcowell
3y ago
They’re not . They’re saying it allows stuff like what’s it’s Java and the decorators in the TS code is exactly what it’s like in Java.
[–]
tlarkworthy
3y ago
It has an equivalent but that code is typescript