Tag

Macro

1 views collected around this technical thread.

Bilibili Tech
Bilibili Tech
Oct 22, 2024 · Mobile Development

Understanding Swift Macros in Swift 5.9 and Their Applications

Swift 5.9’s new macro system lets developers generate type‑safe code at compile time via external plug‑ins, using role‑based declarations such as @attached and @freestanding to create properties, extensions, or warnings, thereby reducing repetitive boiler‑plate and improving safety in large‑scale architectures like MVVP modules and exposure frameworks.

Compiler PluginMacroSwift
0 likes · 20 min read
Understanding Swift Macros in Swift 5.9 and Their Applications
GrowingIO Tech Team
GrowingIO Tech Team
Jun 25, 2021 · Backend Development

How Scala Macros Simplify Protobuf‑Java ↔ Scala Case Class Conversions

This article explains a Scala‑based DSL that uses macros and implicit parameters to generate type‑safe, boiler‑plate‑free conversion code between protobuf‑java messages and Scala case classes, showing examples, builder customisation, and upcoming Scala 3 support.

Backend DevelopmentDSLMacro
0 likes · 11 min read
How Scala Macros Simplify Protobuf‑Java ↔ Scala Case Class Conversions
JD Retail Technology
JD Retail Technology
Nov 13, 2020 · Mobile Development

JDTuple: Implementing a Tuple Data Structure in Objective‑C for Simplified Parameter Handling

This article introduces JDTuple, an Objective‑C tuple library that uses variadic functions, type encodings, and macro tricks to pack arbitrary values, provide key‑based and sequential unpacking, and simplify multi‑parameter passing and return values in iOS development.

DataStructureMacroObjective-C
0 likes · 18 min read
JDTuple: Implementing a Tuple Data Structure in Objective‑C for Simplified Parameter Handling
Architecture Digest
Architecture Digest
Oct 31, 2016 · Fundamentals

One Week with Elixir – Language Design Reflections

Over the course of a week, the author explores Elixir’s design and features—covering its pipe operator, sigils, macro quoting, version handling, and differences from Erlang—while reflecting on language ergonomics, code readability, and functional programming concepts illustrated with concrete code examples.

ElixirErlangFunctional Programming
0 likes · 21 min read
One Week with Elixir – Language Design Reflections