On 23/02/13 22:26, Octavian Damiean wrote:
> <snip>
> On Sat, Feb 23, 2013 at 11:17 PM, Andrew Flegg <[email protected]
> <mailto:[email protected]>> wrote:
>
>     No, I think the right fix (although I'm not on the Calculator team) is
>     to keep it evaluating as you type, but *if* the expression results in
>     a syntax error *don't* show that (instead, a blank or the last result)
>     *unless* another key has been pressed.
>

Actually, that's a nicer suggestion than mine: just display the last
good result when the expression results in a syntax error or nan.

>
>     i.e.
>
>         Typed                      | Display
>       -----------------------------+-----------
>         4                          | 4
>         4 +                        | 4
>         4 + 2                      | 6
>         4 + 20                     | 24
>         4 + 20 -                   | 24
>         4 + 20 - /                 | syntax error
>

>From the video, I understand that the app prevents you from doing that
anyway by not allowing you to type two operators one after another,
which reduces options for mistakes.

Bruno

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to