kowainik / kowainik/stan

Clarify solution wording for STAN-0208

Open
#366 2 comments 0 reactions 0 assignees View on GitHub
question solutions
Dominant language
Haskell
Stars
597
Forks
53
PR merge metrics
No merged PRs in 30d

Description

> Possible solutions
> {Extra dependency} Switch to 'ByteString' from 'bytestring'

I get that `Text.length` is O(n), however applying the suggestion will yield incorrect results for characters wider than 1 byte (even assuming there's only UTF8). Basically, you can not get the length of the textual value by measuring it's memory footprint.

Contributor guide

Open the contributing guide

Research direction

Start with issue #366 and the quoted “Possible solutions” wording for STAN-0208. Check the wording against the stated behavior of Text.length, ByteString, and bytestring; done means the suggestion accurately distinguishes textual character length from memory footprint.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.