Richard Feldman
e7d80358f4
More Str
docs improvements
...
Noticed a couple more!
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:43:51 -05:00
Richard Feldman
f361117ea5
Tweak some Str
documentation
...
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2025-01-25 14:39:40 -05:00
Norbert Hajagos
4fd013eee8
remove unnecesarry capacity check within Str equals
2025-01-24 16:23:14 +01:00
Norbert Hajagos
fc0a9ec4cf
add with_ascii_uppercased and caseless_ascii_equals to Str
2025-01-23 15:21:11 +01:00
shua
8146afc860
fix fmt error
2025-01-20 23:12:48 +01:00
shua
6c29d7aa1f
Merge branch 'main' into fromutf-roc
2025-01-20 19:16:38 +01:00
Norbert Hajagos
06640edb63
Use parens, not WSA in tests, add docs linebreaks, factor calls into a var.
2025-01-20 10:58:44 +01:00
Norbert Hajagos
65ec82aa2a
fix failing test for new fn
2025-01-20 10:58:44 +01:00
Norbert Hajagos
41fafc1497
run formatter, change Str.dropPrefix to snake_case in failing test.
2025-01-20 10:58:44 +01:00
Norbert Hajagos
8403f1ea19
with_ascii_lowercased zig builtin
2025-01-20 10:58:41 +01:00
Luke Boswell
c8467b1fe0
Merge pull request #7454 from roc-lang/ayaz/error-on-invalid-generalized-types
...
Restrict usages of type variables in non-generalized contexts
2025-01-20 11:30:52 +11:00
shua
17624a9d2c
Merge branch 'main' into fromutf-roc
2025-01-18 01:58:14 +01:00
Sam Mohr
a292e070d4
Prefer and
and or
for boolean operators
2025-01-17 16:15:31 -08:00
Anthony Bullard
1b43ffa579
Format all lambdas to new syntax
2025-01-16 08:03:44 -06:00
Ian McLerran
297dd0233e
update internal references to Result.map
2025-01-15 19:55:27 -06:00
Ian McLerran
579beab901
Result.map to Result.map_ok
2025-01-15 19:55:26 -06:00
shua
414fecd14d
add fromUtf16 and 32, as well as lossy variants
2025-01-15 00:17:09 +01:00
Brendan Hansknecht
ec8aeaa15a
zig fmt
2025-01-10 20:39:38 -08:00
Brendan Hansknecht
7643f89781
Merge branch 'main' into simplify-refcount
...
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2025-01-10 20:34:52 -08:00
Sam Mohr
1bb9f7f530
Merge pull request #7498 from HajagosNorbert/dec-to-str
...
remove unused var causing errors in debug tests.
2025-01-10 18:09:21 -08:00
Norbert Hajagos
9689656845
remove unused var causing errors in debug tests.
2025-01-10 21:34:11 +01:00
Ayaz
ee3c71dfe6
Merge branch 'main' into ayaz/error-on-invalid-generalized-types
...
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
2025-01-10 14:36:48 -05:00
Sam Mohr
eb1b5ffa26
Move to new interpolation syntax
2025-01-10 10:29:20 -08:00
Ian McLerran
ab3f39a7c9
Add docs for List.walk_try!
2025-01-09 13:49:33 -06:00
Ian McLerran
ea2a007834
Add List.walk_try!
2025-01-09 11:45:01 -06:00
Ian McLerran
ffa1dd5703
unified formatting for walk
2025-01-09 09:40:59 -06:00
Luke Boswell
d9d2ce83d6
Merge remote-tracking branch 'remote/main' into annotate-type-signatures
2025-01-09 14:21:37 +11:00
Sam Mohr
2150ee2219
Remove Task from Roc
2025-01-08 17:00:40 -08:00
Luke Boswell
37cd04c002
Merge branch 'main' into simplify-refcount
2025-01-09 10:18:00 +11:00
Anthony Bullard
3a6225c354
Fix builtin formatting
2025-01-08 15:20:04 -06:00
Sam Mohr
11b720d355
Fix docs issues
2025-01-07 13:18:58 -08:00
Sam Mohr
7a2f8bfa71
Merge branch 'main' into auto-snake-case
2025-01-07 13:18:41 -08:00
Luke Boswell
8540aa1a14
Merge pull request #7321 from shua/fromutf8
...
DO NOT MERGE update Str.fromUtf8 error type
2025-01-08 07:56:40 +11:00
Timon
716374cfc0
Fixed Issue #6929 Escape unicode when inspecting a Str ( #7411 )
...
* Fixed Issue #6929 Escape unicode when inspecting Str
added AUTHORS
improved comment
* update generated mono tests
* fixed formatting
* fixed merge conflicts
2025-01-06 18:52:50 +01:00
Sam Mohr
f524d35114
Fix module formatting
2025-01-05 21:04:58 -08:00
Sam Mohr
cd0e2a4474
Merge branch 'main' into auto-snake-case
2025-01-05 16:50:24 -08:00
Sam Mohr
1e5b16da36
Fix formatting
2025-01-05 06:39:47 -08:00
Sam Mohr
0edbf16d55
More progress
2025-01-05 05:16:47 -08:00
Sam Mohr
b56fbd38e1
Progress on updating entire compiler for snake_case
2025-01-05 03:48:03 -08:00
Anthony Bullard
a24fe430b4
Support '??' syntax for optional record fields
2025-01-04 14:26:20 -06:00
Sam Mohr
30b8a1407d
Fix broken ability implementation
2025-01-04 05:37:17 -08:00
Sam Mohr
2aac2e01f8
Move builtins to snake_case with auto-case conversion
2025-01-04 03:29:01 -08:00
Ayaz Hafiz
a0461679dd
Restrict usages of type variables in non-generalized contexts
...
Type variables can only be used on functions (and in number literals as
a carve-out for now). In all other cases, a type variable takes on a
single, concrete type based on later usages. This check emits errors
when this is violated.
The implementation is to check the rank of a variable after it could be
generalized. If the variable is not generalized but annotated as a type
variable, emit an error.
2025-01-02 14:26:37 -06:00
Sam Mohr
21aae74be2
Merge branch 'main' into issue-7425
2025-01-02 12:58:35 -05:00
Brendan Hansknecht
66c1d5f425
fix perf on x86
2025-01-01 21:19:01 -05:00
Brendan Hansknecht
b9832dd6d3
remove unnecessary pub
2025-01-01 14:19:41 -08:00
Brendan Hansknecht
0d800252f3
avoid storing refcount instead load it. That optimizes beter for some reason
2025-01-01 14:03:49 -08:00
Brendan Hansknecht
78530141a1
fix tests
2025-01-01 13:35:08 -08:00
Brendan Hansknecht
26bd2d437e
if the user reserves a specific number of elements, trust them
2025-01-01 13:00:34 -08:00
Brendan Hansknecht
c6d594a758
cleanup constant refcount checking
2025-01-01 12:28:16 -08:00