frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•1y ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•1y ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•1y ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

The new Data agent in ChatGPT Work

https://openai.com/index/put-data-to-work/
1•vertigoruntime•2m ago•0 comments

Everyday Entrepreneurship (2016)

https://journals.sagepub.com/doi/10.1111/etap.12258
1•wslh•3m ago•0 comments

Galaxy Z Fold 8 get the same folding animation as iPhone Duo

https://forgeeks.net/iphone-duo-galaxy-fold-animation/
2•kuuuzya•3m ago•0 comments

Automated security review of Monero-project/Monero pull requests

https://github.com/xmrack/monero-review
2•Cider9986•4m ago•0 comments

Any WordPress template/plugins or PHP script premium for 5% each

https://cheapmarketprices.com/index.php/product/wordpress-themes-plugin-and-php-script-ask-any-yo...
2•ilaysyou•5m ago•0 comments

USPS Failed to Properly Handle Some Primary Election Ballots, Audit Finds

https://www.propublica.org/article/postal-service-audit-primary-election-ballots
2•hn_acker•6m ago•1 comments

Maven Robotics emerges from stealth after raising $100M for wheeled robots

https://techcrunch.com/2026/09/10/maven-robotics-wants-to-steal-your-robot-deployment-deal/
1•utiiiD•7m ago•0 comments

The Andrews–Curtis Conjecture (ACC) Challenge

https://competition.sair.foundation/competitions/acc/overview
1•JohnHammersley•7m ago•0 comments

Tell HN: Hacker News datetimes are falsely precise

1•perilunar•8m ago•0 comments

The case to BYOB: build your own (coding) benchmarks

https://byobench.ai/buildyourownbenchmark/
1•oaa36•8m ago•1 comments

Show HN: Syq – copy files between machines fast (better than rsync)

https://greaber.github.io/syq/
2•greaber•8m ago•0 comments

We Are Still Living in the Broken World Sept. 11 Created

https://www.bloomberg.com/opinion/articles/2026-09-10/sept-11-still-shapes-us-constitutional-righ...
1•wslh•8m ago•1 comments

AI doesn't take over. We give it the keys

https://mauriciogomes.com/ai-doesnt-take-over/
1•mauricio•9m ago•0 comments

Show HN: We served 5k dynamic websites from a 2-vCPU, 4 GB VPS

https://github.com/Kooboo/Kooboo/blob/main/Docs/5000-sites-benchmark.md
2•zguoqi•10m ago•0 comments

Update from Buckmaster: Sébastien's statement is wildly false

https://mastodon.social/@tristanbuckmaster/117247207157737650
2•pred_•10m ago•0 comments

I Brought Pokemon into Rust

https://www.youtube.com/watch?v=-oZ67G7AC3I
1•blizow•10m ago•0 comments

The Inner Ring

https://www.lewissociety.org/innerring/
1•sir_unix•10m ago•0 comments

Show HN: Give Agents your design system to build artifacts you're proud of

https://www.valet.dev/blog/work-that-looks-like-yours
1•miradu•12m ago•1 comments

Bending Spoons to buy Miro for $1.36B, 90% less than its 2022 valuation

https://techcrunch.com/2026/09/10/bending-spoons-to-buy-collaboration-tools-maker-miro-for-1-36b-...
3•jaredwiener•12m ago•2 comments

The Absurd, Unending Quest to Floodproof the New York City Subway

https://www.nytimes.com/2026/09/08/magazine/new-york-city-subway-mta-flooding.html
3•bookofjoe•13m ago•1 comments

Launch deserves more than a tweet

https://pressdrop.io
1•isjackback•14m ago•1 comments

Churchill and Lincoln have had it with subscription software [video]

https://www.youtube.com/watch?v=NMY6FiiJQUM
1•phughes1980•15m ago•0 comments

Operation Smart Kettle – Börzels Blog

https://blog.boerzel.de/de/blog/operation-smart-kettle
1•marbartolome•16m ago•0 comments

Killdeer: Independent VM hosting for developers, managed through your terminal

https://killdeer.digital/
1•thunderbong•16m ago•0 comments

Show HN: Xfinlab – a financial intelligence API with an MCP server for AI agents

https://github.com/lnanology/Xfinlab
1•lnanology•17m ago•0 comments

Shopify is moving from React Native to Native

https://twitter.com/mustafa01ali/status/2098047492772249730
2•tosh•17m ago•0 comments

Moduloku

https://www.fractalkitty.com/moduloku/
2•wonger_•19m ago•0 comments

MailPace now has a Domains API

https://mailpace.com/blog/changelog/domains-api
4•albertgoeswoof•20m ago•0 comments

Angelarium – The Encyclopedia of Angels

https://www.angelarium.net
1•bramadityaw•21m ago•0 comments

The Public Suffix List Is a Disaster

https://ethlimo.substack.com/p/the-public-suffix-list-is-a-disaster
4•woodenspoongang•21m ago•0 comments