@@ -204,6 +204,14 @@ let describe items =
204204 | _ -> "empty"
205205```
206206
207+ ### Tuple
208+ ``` fsharp
209+ let describePair pair =
210+ match pair with
211+ | ("ok", code) -> $"success:{code}"
212+ | (kind, code) -> $"{kind}:{code}"
213+ ```
214+
207215### Record
208216``` fsharp
209217let cityLabel address =
@@ -339,8 +347,11 @@ Notes:
339347- include cycles are fatal,
340348- modules are supported in included files.
341349
342- ## 11. Export functions for host integration
343- Mark top-level bindings with ` [<export>] ` when a host must discover them.
350+ ## 11. Hosting, exports, and sandboxing (advanced)
351+ FScript is designed to be embedded.
352+ At host boundary, scripts can expose explicit entry points while the host controls capabilities and security.
353+
354+ Mark top-level bindings with ` [<export>] ` when a host must discover them:
344355
345356``` fsharp
346357[<export>] let dispatch (context: { Command: string }) =
@@ -352,19 +363,20 @@ Mark top-level bindings with `[<export>]` when a host must discover them.
352363}
353364```
354365
355- ## 12. Security mindset and Hosting
356- FScript core evaluation is pure in-memory computation.
357- Side effects depend on host-exposed functions.
366+ Security/hosting teaser:
367+ - core FScript evaluation is pure in-memory computation,
368+ - side effects exist only through host-exposed externs,
369+ - sandboxing is enforced by host decisions (filesystem root, allowed functions, execution controls).
358370
359- When embedding:
371+ When embedding, keep this mindset :
360372- expose only needed externs,
361373- keep filesystem/network boundaries explicit,
362374- use host-level timeout/cancellation/resource limits.
363- - see [ ` docs/embedding-fscript-language.md ` ] ( ./embedding-fscript-language.md ) for host integration API,
364- - see [ ` docs/external-functions.md ` ] ( ./external-functions.md ) for extern design and registration.
365- - see [ ` docs/sandbox-and-security.md ` ] ( ./sandbox-and-security.md ) for security model and host responsibilities .
375+ - see [ ` docs/embedding-fscript-language.md ` ] ( ./embedding-fscript-language.md ) for the embedding API,
376+ - see [ ` docs/external-functions.md ` ] ( ./external-functions.md ) for extern design/ registration,
377+ - see [ ` docs/sandbox-and-security.md ` ] ( ./sandbox-and-security.md ) for the full security model .
366378
367- ## 13 . Next steps
379+ ## 12 . Next steps
368380- Sample scripts:
369381 - [ ` samples/types-showcase.fss ` ] ( ../samples/types-showcase.fss )
370382 - [ ` samples/patterns-and-collections.fss ` ] ( ../samples/patterns-and-collections.fss )
0 commit comments