Главная
Study mode:
on
1
Introduction
2
What is Contextual
3
Why Contextual interrupts are boring
4
The Typer
5
Why is it true
6
How does it work
7
Extension Methods
8
Revisiting Extension Methods
9
Contextual
10
Examples
11
Embedding in Scala
12
Writing Interpolators
13
Haskell
14
Regular Expressions
15
Use of Facing Messages
16
Contextual Interpolators
17
Object
18
ID
19
CSS Interpolator
20
A horrible abomination
21
XML
22
XML Example
23
Xylophone
24
compile error
25
check tags
26
embed name
27
preview
28
embed type class
29
check string content
30
assign context
31
pass position
32
create object
33
extension field
34
literals method
35
parses method
36
dissect URL
37
create case object
38
compile
39
substitution
40
input types
41
version number
Description:
Explore compile-time checking for embedded domain-specific languages (DSLs) in Scala using the Contextual library in this Scala Days Copenhagen 2017 conference talk. Learn how to create string interpolators that perform parsing and validation at compile-time without writing macros. Discover techniques for implementing custom error messages and adding compile-time safety to Scala code. Dive into practical examples of creating literal-like types for email addresses, URLs, YAML, CSS, and even Haskell. Gain insights into the TyperAPI, extension methods, and the inner workings of Contextual. Follow along with demonstrations of various interpolators, including ObjectID, CSS, and XML examples. Understand how to leverage Contextual for parsing, validation, and creating custom literal types to enhance code safety and expressiveness in Scala projects.

Easy Static Checking for Embedded DSLs in Scala with Contextual

Scala Days Conferences
Add to list
0:00 / 0:00