Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
edwardjxli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
Pyrefly vs. Ty: Comparing Python's two new Rust-based type checkers
(blog.edward-li.com)
394 points
by
edwardjxli
1y ago
|
160 comments
2.
▲
by
edwardjxli
1y ago
Extra stuff like type checking and annotations are definitely not the reason why python became that popular and widely adapted and used, but it certainly doesn't hurt to add and use them. To be clear, I'm not expecting people to
3.
▲
by
edwardjxli
1y ago
In that example I gave, I totally agree with you. One area where I find walrus operators kinda useful is with dealing with iterators. For example, ''' iterable = iter(thing) while val := next(iterable, None): print(val) &
4.
▲
by
edwardjxli
1y ago
Hey yall! Original author of the blog here! I did not expect to wake up at 4am seeing my post on front page HN, but here we are nevertheless :D As the intro mentioned, these started off as 14 small tweets I wrote a month prior to starting m
5.
▲
Interesting Python features that I've come across in my career
(blog.edward-li.com)
12 points
by
edwardjxli
2y ago
|
2 comments