Skip to content

Commit

Permalink
docs: Highlight the option which tealscript uses
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmenzel committed Jun 6, 2024
1 parent d6b60d6 commit 1a35a59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions architecture-decisions/2024-06-05_string-alias-or-type.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@@ -0,0 +1,250 @@
# Architecture Decision Record - String as alias or type

- **Status**: Draft
Expand Down Expand Up @@ -36,7 +35,7 @@ The purpose of this ADR is to decide how strings are represented in Algorand TS.

### Option 1 - Alias the bytes type

Introduce an alias for the existing bytes type. The alias is nothing but an alternative name and the types of `str` and `bytes` are interchangeable.
Introduce an alias for the existing bytes type. The alias is nothing but an alternative name and the types of `str` and `bytes` are interchangeable. This is loosely the approach taken by TealScript currently.

```ts
type str = bytes
Expand Down

0 comments on commit 1a35a59

Please sign in to comment.