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

Japan's superior alternative to Paxlovid called Xocova available in US

https://www.shionogi.com/global/en/news/2026/07/20260729.html
1•ck2•1m ago•1 comments

Thanks FedEx, This Is Why We Keep Getting Phished

https://www.troyhunt.com/thanks-fedex-this-is-why-we-keep-getting-phished/
2•stymaar•3m ago•0 comments

Typing Tests for Programmers

https://software-typing.vercel.app/typing
1•joseph-bucholtz•3m ago•1 comments

Harness Archaeology

https://av.codes/blog/agentic-harness-archaeology/
1•everlier•6m ago•0 comments

Terminology Beyond the NixOS Trademark

https://point.free/blog/terminology-beyond-the-nixos-trademark/
1•cafkafk•6m ago•1 comments

SpaceX Starmind Orbital Satellite

https://www.spacex.com/spacexai/starmind
1•delichon•7m ago•0 comments

Find free camping and cabin spots all over the world

https://getcabinfever.com/en/last-minute
1•felixdoerp•7m ago•0 comments

EA Announces Completion of Acquisition by PIF, Silver Lake and Affinity Partners

https://www.businesswire.com/news/home/20260804173096/en/EA-Announces-Completion-of-Acquisition-b...
1•HelloUsername•9m ago•0 comments

Bending Spoons has entered into agreement to acquire Airtable for $1.285B

https://investors.bendingspoons.com/newsroom/bending-spoons-agrees-to-acquire-airtable
1•neilfrndes•9m ago•0 comments

LFM2.5-2.6B: On-Device Agents

https://docs.liquid.ai/lfm/models/lfm25-2.6b
1•achrono•9m ago•0 comments

The Founder's North Face

https://arsenkk.substack.com/p/the-founders-north-face
2•arsenkk•10m ago•1 comments

LFM2.5-2.6B: On-Device Agents

https://www.liquid.ai/models
1•achrono•12m ago•0 comments

Gödel, Escher, Elisp: The Beauty of Macros

https://www.chiply.dev/post-elisp-macros-are-beautiful
2•JNRowe•13m ago•0 comments

Bypassing AI guardrails is so easy a script kiddie can do it

https://www.theregister.com/security/2026/08/04/bypassing-ai-guardrails-is-so-easy-a-script-kiddi...
2•lschueller•13m ago•0 comments

Driving an 80s robot with a 90s OS at VCF West 2026

https://jfloren.net/b/2026/8/4/0
1•floren•14m ago•0 comments

Show HN: Watchfire, an open-source control room for AI coding agents

https://github.com/watchfire-io/watchfire
1•nunocoracao•15m ago•0 comments

Developers: Beware of Ad Libraries That Betray Your Users' Location Privacy

https://www.eff.org/deeplinks/2026/07/developers-beware-ad-libraries-betray-your-users-location-p...
1•hn_acker•15m ago•0 comments

How A.I. Books Sneak Their Way into Stores

https://www.nytimes.com/2026/07/28/books/ai-bookselling-amazon.html
1•bookofjoe•16m ago•1 comments

The Many Facets of Coupling

https://www.enterpriseintegrationpatterns.com/ramblings/coupling_facets.html
1•bastrich•18m ago•0 comments

DuckDuckGo: "No Camera. No AI. Just Normal Sunglasses."

https://twitter.com/DuckDuckGo/status/2082850280413049311
4•_Microft•18m ago•2 comments

The Buffett Indicator Keeps Flashing Red. Is It Broken?

https://www.wsj.com/finance/stocks/the-buffett-indicator-keeps-flashing-red-is-it-broken-d5dd359e
2•rzk•18m ago•1 comments

Comparative Biology

https://en.wikipedia.org/wiki/Comparative_biology
1•soupspaces•19m ago•0 comments

Show HN: LLC Compliance Monitor

https://fernway.io
1•leyu00•19m ago•0 comments

Show HN: Is the Moon Full?

https://isthemoonfull.neocities.org
1•macwhisperer•20m ago•1 comments

Coming of a New Sun

https://vgel.me/fiction/coming-of-a-new-sun/
1•reasonableklout•20m ago•0 comments

What we know about ongoing Coldcard hack that's stolen over $100M in Bitcoin

https://www.cbc.ca/news/world/bitcoin-coinkite-security-hack-9.7295582
4•devonnull•22m ago•0 comments

$35 DuckDuckGo Glasses never need to be charged and designed to protect privacy

https://www.notebookcheck.net/35-DuckDuckGo-Glasses-never-need-to-be-charged-and-are-designed-to-...
4•haritha-j•22m ago•0 comments

Enabling the next iteration of the borrow checker on nightly

https://blog.rust-lang.org/2026/08/04/enabling-polonius-alpha-on-nightly/
1•matt_d•22m ago•0 comments

Lua 5.5.1 Released

https://www.lua.org/work/diffs-lua-5.5.0-lua-5.5.1.html
6•andrewstetsenko•22m ago•0 comments

Hudson Valley Fisheries closes operations citing high costs, lack of water

https://www.salmonbusiness.com/argentina-eyes-land-based-salmon-production-after-aquaculture-law-...
2•carride•23m ago•2 comments