frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

1•winwang•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Klik BCA Bisnis Hubungi Halo BCA 24 Jam

1•momchenr•1m ago•0 comments

House Summons Australian Censor Julie Inman Grant over Global Takedown Demands

https://reclaimthenet.org/us-congress-summons-australias-censor
1•qwertypoiu•1m ago•0 comments

Nomor WhatsApp Halo BCA 0817.395.377

1•momchenr•3m ago•0 comments

Show HN: Fragment – An AI-native notebook with YAML-based Prism Protocol

https://fragment.place/demo/prism
1•poieticdog•4m ago•0 comments

Show HN: Ardage, a tool to build ArXiv Markdown datasets using natural language

https://github.com/HariharPrasadd/ardage
1•hariharprasadd•5m ago•0 comments

The Path to Crypto Agility and Quantum Readiness

https://blog.trace3.com/the-path-to-crypto-agility-and-quantum-readiness
1•mooreds•7m ago•0 comments

How Three YC startups built their companies with Claude Code

https://www.claude.com/blog/building-companies-with-claude-code
3•gmays•11m ago•0 comments

RLCDev

https://rlcdev.app/
2•luthiraabeykoon•13m ago•2 comments

Nomor WhatsApp Halo BCA

1•Cjmapope•16m ago•0 comments

Non-Residents LLC Solutions

https://llcclass.com/foreigners/
1•zlonmask•17m ago•1 comments

Berapa WhatsApp BCA

1•Cjmapope•18m ago•0 comments

Reverse Engineering Antigravity's Browser Automation

https://alokbishoyi.com/blogposts/reverse-engineering-browser-automation.html
1•dsr12•19m ago•0 comments

Self-hosting DNS for no fun, but a little profit

https://linderud.dev/blog/self-hosting-dns-for-no-fun-but-a-little-profit/
1•pabs3•19m ago•0 comments

Nomor Layanan Halo BCA

1•jcalfucura•22m ago•0 comments

Azure HorizonDB – managed Postgres-compatible database

https://techcommunity.microsoft.com/blog/adforpostgresql/announcing-azure-horizondb/4469710
1•vyrotek•24m ago•0 comments

A Style is Worth One Code: open-source Midjourey-like --sref

https://arxiv.org/abs/2511.10555
1•meander_water•24m ago•0 comments

Show HN: Faraday – the most capable AI scientist for biotech

https://twitter.com/AscentBio/status/1989554865819807933
1•xuefei_gao•33m ago•0 comments

Robin: AI-Powered Dark Web Osint Tool

https://github.com/apurvsinghgautam/robin
2•modinfo•33m ago•0 comments

Ozempic-Jesse Wells[Ytvid] [video]

https://www.youtube.com/watch?v=TG75cdOcE6M
1•rolph•35m ago•1 comments

Create Streets City Design

https://www.createstreets.com/front-page-2/projects-2/
1•yeknoda•37m ago•0 comments

Pingap: Simple and efficient reverse proxy based on pingora

http://pingap.io/pingap-en/
1•klaussilveira•40m ago•0 comments

The Tsar Bath – Granite Marvel of Saint Petersburg: History and Secrets [video]

https://www.youtube.com/watch?v=4oXrEmiv9ns
1•sipofwater•40m ago•0 comments

Forward declaring a type in C++: The good, and the bad

https://andreasfertig.com/blog/2025/10/forward-declaring-a-type-in-cpp-the-good-and-the-bad/
1•klaussilveira•41m ago•0 comments

Scholar Labs: An AI Powered Scholar Search

https://scholar.googleblog.com/2025/11/scholar-labs-ai-powered-scholar-search.html
2•alechammond•44m ago•0 comments

Telecom-wavelength quantum teleportation using frequency-converted photons

https://www.nature.com/articles/s41467-025-65912-8
1•treetalker•46m ago•1 comments

The New AI Consciousness Paper

https://www.astralcodexten.com/p/the-new-ai-consciousness-paper
1•pseudolus•47m ago•0 comments

Show HN: Batch process images with AI workflows

https://nanobibi.com/en/bulk
1•jokera•48m ago•0 comments

Stargate is coming back after 14 years [video]

https://www.youtube.com/watch?v=e82uV9sBt4I
3•sponaugle•49m ago•2 comments

Pluribus

https://en.wikipedia.org/wiki/Pluribus
1•1659447091•54m ago•1 comments

Show HN: MCP Compact – Middleware to trim noisy browser/DOM/tool outputs

https://sabareesh.com/posts/mcp-compact/
1•sabareesh•55m ago•0 comments