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

David Hockney – iPad Works

https://www.hockney.com/index.php/works/digital/ipad
1•basisword•29s ago•0 comments

Wave-inspired path-planning strategy for support-free horizontal overhang FDM

https://www.sciencedirect.com/science/article/pii/S277236902600040X?via%3Dihub=
1•rbanffy•51s ago•0 comments

An open letter to office suite users

https://blog.documentfoundation.org/blog/2026/06/08/an-open-letter/
1•nitnelave•1m ago•0 comments

Isomorphic Labs Hunts Hidden Drug Targets

https://spectrum.ieee.org/isomorphic-labs-ai-drug-discovery
1•rbanffy•1m ago•0 comments

The Computer Science Degree Isn't Dead

https://spectrum.ieee.org/computer-science-degree-isnt-dead
1•jruohonen•2m ago•0 comments

Editxr – A WYSIWYG Markdown editor for the terminal

https://editxr.org/
1•mromanuk•2m ago•0 comments

High-Level Notes on DS/ML Job Hunting

https://gentrexha.xyz/datascience/machinelearning/interviews/career/jobsearch/2026/06/11/preparin...
1•gentrexha•3m ago•1 comments

Sharing my product lexicon to lead product teams

https://www.scapellato.dev/blog/build-an-effective-product-lexicon
1•antonscap•4m ago•0 comments

The last line of defense must not be AI

https://worklifenotes.com/2026/06/12/the-last-line-of-defense-must-not-be-ai/
1•taleodor•4m ago•0 comments

Sovereignty Washing

https://www.article19.org/resources/sovereignty-washing-a-critical-reading-of-eus-tech-sovereignt...
1•jruohonen•4m ago•0 comments

Mojo Nightly

https://mojolang.org/releases/nightly/
1•andrewstetsenko•6m ago•0 comments

Encrypted Spaces An architecture for collaborative applications

https://encryptedspaces.org/
1•_____k•7m ago•0 comments

Our politicians fear engineers so much that they risk high treason charges

http://mikhailian.mova.org/node/325
1•sam_lowry_•7m ago•0 comments

Due to DMA, Siri AI delayed in EU for iOS 27 and iPadOS 27

https://www.apple.com/newsroom/2026/06/due-to-dma-siri-ai-delayed-in-eu-for-ios-27-and-ipados-27/
1•prawn•8m ago•0 comments

Agent Skills that teach AI coding agents to integrate barcode scanning

https://github.com/scandit/skills
1•1lb3r•8m ago•0 comments

World of Claudecraft: the first vibecoded MMORPG by Fable (open source)

https://worldofclaudecraft.com
2•niftynanometer•8m ago•0 comments

Show HN: Chirp, My constraint-driven metaprogramming language

https://github.com/FrancoisChabot/chirp/tree/main
1•Chabsff•9m ago•1 comments

Let's Do Postfix Again

https://brokkr.net/tag/lets-do-postfix-again/
1•ofrzeta•10m ago•0 comments

Why are pull requests so hard to review?

https://www.pyor.review/blog/why-are-pull-requests-so-hard-to-review
1•othmanosx•11m ago•0 comments

What's the Future of Gene Editing?

https://www.quantamagazine.org/whats-the-future-of-gene-editing-20260611/
2•haeseong•14m ago•0 comments

Reuse Less Software

https://wiki.alopex.li/ReuseLessSoftware
1•haeseong•16m ago•0 comments

I migrated this blog from Zola to WordPress

https://blogoboros.fly.dev
2•ngalaiko•18m ago•0 comments

Show HN: Treeline – beautiful, powerful wilderness topo maps for iOS

https://apps.apple.com/us/app/treeline-maps-topo-trails/id6761303613
3•rafram•19m ago•0 comments

Hi HN – U_DAW here, one of the creators

https://github.com/ceh13-community/rozoom/releases/tag/app-v0.22.2
2•udawpk•19m ago•0 comments

SEC Seeks to Scrap Best-Price Rule

https://www.morningstar.com/news/dow-jones/202606116645/sec-seeks-to-scrap-best-price-rule
2•littlexsparkee•19m ago•0 comments

Academic's warning about using AI was written using AI

https://www.thetimes.com/world/australasia/article/academic-used-ai-to-write-warning-not-to-cut-c...
4•Anon84•24m ago•1 comments

The Broken Plate 2026: health of the UK food system

https://foodfoundation.org.uk/publication/broken-plate-2026
2•helsinkiandrew•25m ago•1 comments

Show HN: Zamp – AI employee you delegate real enterprise jobs to

https://www.zamp.ai
2•metashwat•26m ago•0 comments

Show HN: GeoSolver MCP – reverse image geolocation for AI agents

https://reverseimagelocation.com/settings/mcp
1•elegate1984•27m ago•0 comments

Demystifying Hidden-State Recurrence

https://arxiv.org/abs/2606.13106
2•ilreb•28m ago•0 comments