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

Ask HN: Shifting Reoccuring Agentic Workflow to ML Process?

1•wwolfson97•4m ago•0 comments

Sony SMC-70

https://zzxio.com/about-us/sony-smc-70/
1•Bluestein•5m ago•0 comments

The New Moscow: A Digital Utopia Doubling as a Surveillance Trap

https://www.nytimes.com/2026/09/14/world/europe/moscow-russia-putin-digital-surveillance.html
1•reaperducer•6m ago•0 comments

You can run Git on object storage if you re-make packfiles

https://www.tigrisdata.com/blog/objgit-packfiles/
1•xyzzy_plugh•8m ago•0 comments

The walls and avenues of Chang-An (2018)

http://dragonsarmory.blogspot.com/2018/05/chang-the-city-of-eternal-peace-part-2.html
1•gone35•9m ago•0 comments

Cloudflare: Stay discoverable in search while disallowing AI training

https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/
6•djfergus•11m ago•0 comments

Implement a credit freeze to increase your financial security

https://graphthinking.blogspot.com/2016/11/to-increase-your-financial-security.html
1•physicsgraph•11m ago•0 comments

Mark Zuckerberg: Labs should self-regulate

https://twitter.com/finkd/status/2099997096896274533
2•mfiguiere•12m ago•0 comments

Show HN: Graft – local-first persistent memory for coding agents

https://github.com/AEndrix03/Graft
1•AEndrix03•12m ago•0 comments

The extreme engineering of aircraft windows

https://www.bbc.com/news/articles/c0lr69zeyrwo
2•1659447091•15m ago•0 comments

Computer Use for iPad

https://twitter.com/jamiepinheiro/status/2099981750046953653
2•jamiepinheiro•18m ago•0 comments

Free Palestine

https://www.theguardian.com/us-news/2026/sep/15/ed-sheeran-macklemore-palestine-openers-finneas
3•mo7061•24m ago•0 comments

Open HamClock Backend

https://ohb.works/
3•firesteelrain•25m ago•0 comments

The Roman telescope has enough gas for 22 years, double NASA's expectations

https://arstechnica.com/space/2026/09/the-roman-telescope-has-enough-gas-for-22-years-double-nasa...
2•jnord•27m ago•0 comments

Breaking macOS Screen Time for fun and profit

https://dunkirk.sh/blog/screentime/
1•clacker-o-matic•27m ago•0 comments

Apple Reference Image: A New Approach for Verified Photography

https://security.apple.com/blog/apple-reference-image/
3•imwally•28m ago•0 comments

Saudi Arabia discovers 110M tonnes of uranium-bearing ore in Medina

https://www.reuters.com/business/energy/saudi-arabia-discovers-110-million-tonnes-uranium-bearing...
1•teleforce•30m ago•0 comments

A 32-Year-Old Bug Walks into a Telnet Server

https://labs.watchtowr.com/a-32-year-old-bug-walks-into-a-telnet-server-gnu-inetutils-telnetd-cve...
1•paimapi•34m ago•0 comments

Republicans Aim to Shield Fossil Fuel Companies from Climate Lawsuits

https://insideclimatenews.org/news/15092026/congress-republicans-introduce-bills-protecting-fossi...
1•paimapi•35m ago•0 comments

Chinese Solar Panels Drop to 12 Cents a Watt, Rooftop Installs Surge Worldwide

https://oilprice.com/Alternative-Energy/Solar-Energy/Chinese-Solar-Panels-Drop-to-12-Cents-a-Watt...
2•martinpw•36m ago•1 comments

Steam Frame Review – PC Gamer

https://www.pcgamer.com/hardware/vr-hardware/valve-steam-frame-review/
1•evo_9•37m ago•1 comments

Show HN: Writeably cuts the waffle without losing your meaning or voice

https://writeably.com/write
1•si_164•39m ago•0 comments

iCloud backup – 5GB available, but I can't use it

2•timnetworks•40m ago•0 comments

Show HN: (alter)native-Linux-builder for Nix on Darwin

https://github.com/quinneden/alternative-linux-builder
2•qeden•40m ago•0 comments

Show HN: Breakdown: a daily game about guessing data distributions

https://breakdown.today
2•aberrantflux•42m ago•0 comments

Gemini 3.8 Live

https://ai.google.dev/gemini-api/docs/models/gemini-3.8-live
1•CoderLim110•44m ago•0 comments

Software Citations from Replication Files

https://recite.github.io/softverse/lookup/
2•neehao•46m ago•0 comments

One seeded bug, 26 AI agents: all passed the tests, all stayed broken

https://github.com/vyang472/five-bugs
3•vyang472•47m ago•0 comments

Show HN: Whop Video Downloader

https://chromewebstore.google.com/detail/whop-video-downloader/aijaloilljdgamclcoababimlnahoemm
1•qwikhost•47m ago•0 comments

Show HN: Review agent changes locally before pushing

https://github.com/marcparadise/reviewer
2•GrinningFool•56m ago•0 comments