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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Show HN: My mouse was sending two clicks instead of one – I built a tester

https://oopsclick.pages.dev/
1•nirvanist•21s ago•0 comments

Ask HN: B2B or B2C?

1•eyalhadad•1m ago•0 comments

The Slow Death of Productivity: Why Time.sleep() Is Killing Your Automation

https://pypi.org/project/nano-wait/
1•LuizSeabra•3m ago•1 comments

Show HN: Collecting AI Developer Tools

https://aihunt.dev/
1•fullofdev•3m ago•0 comments

Proposal: Generic Methods for Go

https://github.com/golang/go/issues/77273
1•pansa2•4m ago•0 comments

'Organized syndicates' fraudulently access health records, lawsuit says

https://www.washingtonpost.com/health/2026/01/22/electronic-health-record-fraud-lawsuit/
1•bookofjoe•5m ago•1 comments

JWT authentication bypass in HarbourJwt via "unknown alg"

https://pentesterlab.com/blog/cve-2026-23993-harbourjwt-unknown-alg-jwt-bypass
1•mooreds•7m ago•0 comments

Justice Department Opens Criminal Probe into Silicon Valley Spy Allegations

https://www.wsj.com/us-news/law/justice-department-opens-criminal-probe-into-silicon-valley-spy-a...
1•nradov•8m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
2•mooreds•9m ago•0 comments

Show HN: Skill Generator – Turn terminal workflows into AI agent skills

1•ezulabs•9m ago•0 comments

A multi-entry CFG design conundrum

https://bernsteinbear.com/blog/multiple-entry/
1•ibobev•10m ago•0 comments

Infinite Random Rectangles – The Poisson Rect Process

https://www.boristhebrave.com/2026/01/22/infinite-random-rectangles-the-poisson-rect-process/
1•ibobev•10m ago•0 comments

Mana LLM OS

https://www.mana.space/
1•behzadhaghgoo•12m ago•0 comments

EV battery leader CATL set to launch first sodium-ion batteries in vehicles

https://electrek.co/2026/01/23/ev-battery-leader-plans-first-sodium-ion-batteries-passenger-cars/
2•breve•13m ago•0 comments

The Time Oxygen Almost Killed Everything [video]

https://www.youtube.com/watch?v=qERdL8uHSgI
2•mooreds•13m ago•0 comments

Zulip AI use policy and guidelines

https://zulip.readthedocs.io/en/latest/contributing/contributing.html#ai-use-policy-and-guidelines
1•Philpax•14m ago•0 comments

Ask HN: Why don't winter gloves have mechanical fingers?

2•amichail•16m ago•2 comments

Show HN: The one-stop-place for gen-alpha events

https://www.bloxrn.com
1•claude_sh_1959•16m ago•0 comments

The New "Full Stack"

https://twitter.com/ray_daze/status/2014813876878262301
2•alexjray•17m ago•0 comments

EquipmentShare (YC W15) goes public

https://www.ycombinator.com/blog/congratulations-to-equipmentshare/
5•subsequent•17m ago•2 comments

Show HN: Free Top Font Library: Bestfonts.co – Find Free Top Fonts in Seconds

https://bestfonts.co
1•LetsBuildThis•17m ago•0 comments

Tim O'Reilly – AI and the Next Economy

https://www.oreilly.com/radar/ai-and-the-next-economy/
1•rmason•18m ago•1 comments

Tiny Sand Grains May Solve 5k-Year-Old Stonehenge Mystery

https://studyfinds.org/sand-may-solve-stonehenge-mystery/
1•rmason•19m ago•0 comments

Show HN: CIE – Open-source code intelligence engine for AI coding assistants

https://github.com/kraklabs/cie
1•kraklabs•19m ago•0 comments

Urjo

https://urjo.com/
3•wawayanda•20m ago•0 comments

Breath carries clues to gut microbiome health

https://medicine.washu.edu/news/breath-carries-clues-to-gut-microbiome-health/
1•gmays•21m ago•0 comments

Wine 11.1 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.1
2•neustradamus•21m ago•0 comments

Winapp, the Windows App Development CLI – Windows Developer Blog

https://blogs.windows.com/windowsdeveloper/2026/01/22/announcing-winapp-the-windows-app-developme...
1•MaysonL•23m ago•0 comments

North America divided into regions of 1M people

https://www.anita.garden/assets/na1m.png
3•owodc•25m ago•0 comments

Akin to believing light beer is a solution to alcoholism: My time at Patagonia

https://arestlesstransplant.substack.com/p/akin-to-believing-light-beer-is-a
1•chaseadam17•27m ago•0 comments