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•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

Wazuh Detection Capabilities with Clickdetect, Opensearch PPL and Sigma Rules

https://medium.com/@souzo/extending-wazuh-detection-capabilities-with-clickdetect-opensearch-ppl-...
1•souzo•2m ago•0 comments

Permitted by Physics

https://protortyp.github.io/posts/permitted-by-physics/
1•protortyp•3m ago•0 comments

Show HN: Using Tailscale with an OrbStack VM on macOS

https://github.com/highpost/tailscale-macos-vm
1•highpost•7m ago•1 comments

I'm done. I'm f***ing done [video]

https://www.youtube.com/watch?v=VucjurQUHO8
3•kshri24•15m ago•0 comments

New Jersey judges rule man can't cash $59000 in gaming chips from defunct casino

https://www.usatoday.com/story/news/nation/2025/04/09/playboy-hotel-casino-atlantic-city-chips/83...
1•austinallegro•16m ago•0 comments

Some Like It Literary

https://www.nytimes.com/2026/05/24/books/review/marilyn-monroe-books-arthur-miller.html
1•samclemens•18m ago•0 comments

NoPeek detect Meta Ray-Ban glasses and VR headsets via immutable BLE company IDs

https://github.com/getnopeek/nopeek-android
1•Still_Neck7328•19m ago•0 comments

Using encapsulated development to code on my phone

https://maryrosecook.com/blog/post/using-encapsulated-development-to-code-on-my-phone
1•wrxd•22m ago•1 comments

The Prophecies of the Brahan Seer (1877)

https://publicdomainreview.org/collection/brahan-seer/
1•prismatic•23m ago•0 comments

Altered photos of Biden, Trump with Xi spread online

https://factcheck.afp.com/doc.afp.com.B3D69WJ
1•lschueller•23m ago•0 comments

From Meta to SpaceX: how dual-class shares keep founders in control

https://www.reuters.com/legal/legalindustry/meta-spacex-how-dual-class-shares-keep-founders-contr...
2•1vuio0pswjnm7•25m ago•0 comments

Boston and Bermuda

https://askthepilot.com/boston-and-bermuda/
1•dangle1•26m ago•0 comments

Show HN: OpenBrief – Local-first video downloader/summarizer

https://github.com/tantara/openbrief
2•tantara•27m ago•0 comments

Pope calls for robust regulation of AI in manifesto re: the future of humanity

https://apnews.com/article/pope-ai-tech-trump-vatican-anthropic-d92d0108730d146baa46da041b8523da
1•1vuio0pswjnm7•27m ago•0 comments

The Problem of Marital Loneliness

https://www.newyorker.com/culture/cultural-comment/the-problem-of-marital-loneliness
1•Anon84•28m ago•1 comments

Pope Leo says AI could warp humanity

https://www.axios.com/2026/05/25/pope-leo-xiv-ai-humanity-war-jobs-warning
1•1vuio0pswjnm7•29m ago•0 comments

AI deskilling is a structural problem

https://link.springer.com/article/10.1007/s00146-025-02686-z
1•aliquant•29m ago•0 comments

Hands in the Swamp

https://example42.com/blog/2026/05/20/hands-in-the-swamp/
1•nickstinemates•30m ago•0 comments

Microsoft Copilot Cowork Exfiltrates Files

https://www.promptarmor.com/resources/microsoft-copilot-cowork-exfiltrates-files
5•Kneenex•31m ago•0 comments

Who Owns Your Robot's Brain?

https://medium.com/@vektormemory/who-owns-your-robots-brain-the-memory-monopoly-coming-in-2027-62...
1•vektormemory•32m ago•1 comments

Poll: Testing

1•sillysaurusx•33m ago•0 comments

Show HN: A Word Matching Game

https://artificesoftware.com/interactives/synonym-antonym-game.html
1•ArtificeAccount•36m ago•0 comments

Jujutsu [video]

https://www.youtube.com/watch?v=5zOgimIgYqA
1•davidkunz•37m ago•0 comments

Cheese-rolling legend beaten by German YouTuber

https://news.sky.com/story/cheese-rolling-legend-beaten-by-german-youtuber-13547926
1•austinallegro•37m ago•0 comments

We're dancing animals (Kurt Vonnegut)

https://chrisglass.com/2024/11/01/kurt-vonnegut-buys-an-envleope/
1•haxiomic•39m ago•0 comments

Show HN: Fungible – A local personal finance app in the terminal

https://github.com/tomfunk/fungible
2•tomfunk•41m ago•0 comments

Show HN: Unsiloed AI – #1 on olmOCR-Bench

3•adnan9999•42m ago•1 comments

Sqlit – A lazygit-style TUI for SQL databases

2•MaxTeabag•42m ago•0 comments

Ferrari Luce, Maranello's first ever electric car

https://www.topgear.com/car-news/electric/its-finally-here-meet-ferrari-luce-maranellos-first-eve...
14•sz4kerto•42m ago•9 comments

Reticulum: Source-privacy claim vs. routing metadata

https://codeberg.org/MarSik/reticulum-audit/src/branch/main/reticulum-source-privacy-flaw.md
3•almet•43m ago•0 comments